package com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.domain.ApprovalProcessDO;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * OA流程流转 Mapper 接口
 * </p>
 * @author 34448
 */
@Mapper
public interface ApprovalProcessMapper extends BaseMapper<ApprovalProcessDO> {

    @Select("SELECT status, COUNT(process_id) AS count FROM approval_processes GROUP BY status")
    List<Map<String, Object>> countApprovalProcessStatus();
}